package zr.com.thread.local;

public class ThreadLocalDemo {

    static ThreadLocal<String> local = new ThreadLocal<>();

    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                local.set("hello" + Thread.currentThread().getName());
            }
        }).start();
    }
}
